<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

$limitRobbingInfos = \Biz\model\activity\LimitTimeRobbing::select(['id', 'start_time', 'end_time'], ['status' => 1]);

foreach ($limitRobbingInfos as $limitRobbingInfo) {

	\Biz\model\activity\LimitTimeRobbingSku::update(['start_time' => $limitRobbingInfo['start_time'], 'end_time' => $limitRobbingInfo['end_time']], ['robbing_id' => $limitRobbingInfo['id']]);
}


$info = \Biz\cache\Activitys::getMultiRobbing([1344]);
var_dump($info);